package com.bai.order.client;

import com.bai.utils.orderVo.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient("service-ucenter")
public interface UcenterClient {
    /**
     * 根据用户id查询用户信息
     * @param memberId
     * @return
     */
    @PostMapping("/ucenter/member/getById/{memberId}")
    public UcenterMemberOrder getById(@PathVariable("memberId") String memberId);
}
